<div class="layui-card">
    <div class="layui-card-body ">
        <form action=""  class="layui-form" style="display: none;">
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input type="text" name="keywords" value="{$search.keywords|default=''}" class="layui-input" placeholder="标签名称">
                </div>
                <div class="layui-input-inline">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">搜索</button>
                    {if isset($search.keywords)}
                    <a href="javascript:history.go(-1);" class="layui-btn">返回</a>
                    {/if}
                </div>
            </div>
        </form>
        <form action="{:url('post/admin.collection/delcollection')}" method="post" class="layui-form delete-form " id="cp-form">
            <table class="layui-table">
                <thead>
                    <tr>
                        <th width="300">文章标题</th>
                        <th width="120">收藏用户</th>
                        <th width="120">收藏状态</th>
                        <th width="120">收藏时间</th>
                    </tr>
                </thead>
                <tbody>
                {volist name="tagList" id='v'}
                <tr>
                    <td>{$v.article.post_title|default=''}</td>
                    <td>
                        {if isset($v.user_id.username)}
                        {$v.user_id.username}
                        {elseif isset($v.user_id.nickname)}
                        {$v.user_id.nickname}
                        {else /}
                        {/if}
                    </td>
                    <td>
                        {if $v.is_collection==0}取消收藏{/if}
                        {if $v.is_collection==1}收藏{/if}
                    </td>
                    <td>{$v.update_time}</td>
                </tr>
                {/volist}
                </tbody>
            </table>
            {$tagList|raw}
        </form>
    </div>
</div>